slider.onchanged in unity

71

slider.onchanged in unity -

    //A place to store it
    float currentMaxV;
    //Set it
    currentMaxV = sliderX.maxValue;
    //Detect it
    if(sliderX.maxValue > currentMaxV)
    {
        //Slider max value changed
        currentMaxV = sliderX.maxValue;
    }

Comments

Submit
0 Comments